package com.xiaoxu.intranetweb.mybatisplusSzappdb.Dic;

import org.springframework.stereotype.Component;

@Component
public class AshGateDic {
    //    区域类型
    public String getAshGateTypeDic(Integer ashGateType){
        String dic = "";
        if (ashGateType == null ){
            return dic;
        }
        switch (ashGateType){
            case 0:
                dic = "普通地点";
                break;
            case 1:
                dic = "一般装卸点";
                break;
            case 2:
                dic = "有料位装卸点";
                break;
        }
        return dic;
    }

    public String getAshGateManDic(String ashGate){
        String dic = "";
        if (ashGate == null ){
            return dic;
        }
/*        switch (ashGate){
            case 0:
                dic = "自动采集";
                break;
            case 1:
                dic = "手输";
                break;
        }*/
        if (ashGate.equals("0")) {
            dic = "自动采集";
        }
        if (ashGate.equals("1")) {
            dic = "手输";
        }
        return dic;
    }

}
